[global]
   dos charset = CP866
   unix charset = utf8
   workgroup = WORKGROUP
   security = User
   map to guest= Bad User
   guest account = ivan
  passdb backend = tdbsam
      
   
 # или даже стать доменконтроллером, то всегда прописывайте эти пять опций именно в таком виде
 #  domain master = no
 #  local master = no
 #  preferred master = no
 #  os level = 0
#;  domain logons = no

   usershare allow guests = yes
    server string = %h server (Samba, Ubuntu)

[anton]
 comment = anonimus
 path =/home/ivan/anton/
 writable = yes
 public = yes
 read only = no 
 guest ok = yes
 browseable = yes
 create mask = 0777
 force create mask = 0777
 directory mode = 0777
 force directory mode = 0777